package cn.ad.server.web.spring.service.components.http.client;

/**
 * post请求
 * @author wangwei
 *
 */
public class AdHttpPostRequest extends AdHttpRequest {
	
	String json;

	byte[] buffer;
	
	public String getJson() {
		return json;
	}

	public void setJson(String json) {
		this.json = json;
	}
	
	private EntityType type= EntityType.UNKNOWN;
	

	public EntityType getType() {
		return type;
	}

	public void setType(EntityType type) {
		this.type = type;
	}
	
	public byte[] getBuffer() {
		return buffer;
	}

	public void setBuffer(byte[] buffer) {
		this.buffer = buffer;
	}

	public enum EntityType {
		UNKNOWN,JSON,FORM,BYTE;
	}
	
}
